package com.doitedu;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.ZooKeeper;

/**
 * @Date 2021/12/10
 * @Created by HANGGE
 * @Description
 * 更新数据
 */
public class C04_Demo04 {
    public static void main(String[] args) throws Exception {
        ZooKeeper zk = new ZooKeeper("linux01:2181,linux02:2181,linux03:2181", 2000, null);
      zk.setData("/doit28"  ,"精英中的精英".getBytes() ,-1);
        zk.close();
    }
}
